package com.jp.knowledge.my.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author gzejia 978862664@qq.com
 */
public class MyReeceModel implements Parcelable {

    // 红包金额
    private float mMoney;
    // 操作日期
    private String mDate;
    // 操作时间
    private String mTime;
    // 用户头像
    private int mHeaderUrl;
    // 提示信息
    private String mHind;

    public String getTime() {
        return mTime;
    }

    public void setTime(String time) {
        mTime = time;
    }

    public float getMoney() {
        return mMoney;
    }

    public void setMoney(float money) {
        mMoney = money;
    }

    public String getDate() {
        return mDate;
    }

    public void setDate(String date) {
        mDate = date;
    }

    public int getHeaderUrl() {
        return mHeaderUrl;
    }

    public void setHeaderUrl(int headerUrl) {
        mHeaderUrl = headerUrl;
    }

    public String getHind() {
        return mHind;
    }

    public void setHind(String hind) {
        mHind = hind;
    }

    public MyReeceModel() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeFloat(this.mMoney);
        dest.writeString(this.mDate);
        dest.writeString(this.mTime);
        dest.writeInt(this.mHeaderUrl);
        dest.writeString(this.mHind);
    }

    protected MyReeceModel(Parcel in) {
        this.mMoney = in.readFloat();
        this.mDate = in.readString();
        this.mTime = in.readString();
        this.mHeaderUrl = in.readInt();
        this.mHind = in.readString();
    }

    public static final Creator<MyReeceModel> CREATOR = new Creator<MyReeceModel>() {
        @Override
        public MyReeceModel createFromParcel(Parcel source) {
            return new MyReeceModel(source);
        }

        @Override
        public MyReeceModel[] newArray(int size) {
            return new MyReeceModel[size];
        }
    };
}
